#include <iostream>
#include <list>
#include <ostream>
#include <vector>
//
// Created by lingzhitech on 25-9-16.
//
bool isEqual(const std::vector<int>& v1, const std::list<int>& v2) {
    if (v1.size() != v2.size()) {
        return false;
    }
    auto iter1 = v1.begin();
    auto iter2 = v2.begin();
    for (; iter1 != v1.end(); iter1++, iter2++) {
        if (*iter1 != *iter2) {
            return false;
        }
    }
    return true;
}
int main() {
    std::vector<int> v1 = {1, 2, 3, 4, 5};
    std::list<int> v2{1, 2, 3, 4, 5, 6};
    std::cout << isEqual(v1, v2) << std::endl;
}